package org.ham007.proxysender.server.servlet;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.ham007.proxysender.server.twitter.follow.AutoFollowProcesser;

@SuppressWarnings("serial")
public class AutoFollowServlet extends HttpServlet
{
	private AutoFollowProcesser processer = null;
	
	@Override
	public void init() throws ServletException {
		 processer = new AutoFollowProcesser();
	}
	
	@Override
	protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException
	{
		processer.followStateChange(true);
		resp.setContentType("text/html; charset=UTF-8");
		resp.getWriter().println("AutoFollow");
	}
}
